<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绘制竖向柱状图</title>
    <style>
        svg{
            border: 1px solid #333;
        }
    </style>
</head>
<body>
    <svg width="600" height="600">
        <g fill="red" stroke="#000" stroke-width="2" transform="translate(0,0)">
            <rect y="0" x="60" height="100" width="40"></rect>
            <rect y="0" x="160" height="120" width="40"></rect>
            <rect y="0" x="260" height="250" width="40"></rect>
            <rect y="0" x="360" height="110" width="40"></rect>
        </g>
    </svg>
</body>
</html>